home *** CD-ROM | disk | FTP | other *** search
- These batch files are for use with PCommand, a shell program written by William
- Wong of Solid Applications. It is a freeware program. You may obtain a
- registered copy by sending $25 to:
-
- Solid Applications
- 1333 Moon Dr.
- Morrisville, PA 19067
-
- If you already have a copy of PCommand, I strongly encourage you to send in the
- $25. In order for Mr. Wong to be able to update the product and to write other
- software for the ST, he needs to have an income from his current product. If
- you want to see more programs like this, or an even better version of PCommand,
- then you need to send him the $25 so that he can afford to devlop products for
- the ST.
-
- All the files which require parameters will display information about
- themselves if you call them with no parameters. These files are: Q, CHKDSK,
- COLOR, and MOVE. Q and MOVE both call the batch file QUERY. To optimize
- spped, QUERY should be placed in whatever drive\folder you set for your default
- path. The edit Q.BAT and MOVE.BAT to specify exactly where QUERY.BAT can be
- found.
-
-
-
- QUERY.BAT - this batch file is called by some of the other batch files
- included in this archive. It's purpose is to display a box containing
- what command is to be executed, and giving a yes/no/abort choice to
- the user. Abort will not only exit query, but also the batch file
- that called it.
-
-
- Q.BAT - this batch file allows you to execute commands with a query. For
- example, if you wanted to delete some, but not all of the files from
- drive D:, you would type:
-
- Q DEL D:
-
- A file selector box would open, and you would specify the drive, path,
- and filespec (default is *.*). You could change the name of the
- filespec if you wanted to be more specific. Once you're ready, press
- RETURN or click on OKAY. You will then be presented with a box telling
- you the name of a file to delete. You may select yes, no, or abort.
- Abort will stop the batch process. You may also use this with the
- COPY command. In this case you must enter the source drive\folder and
- destination drive\folder. For example to copy *.bat files from drive
- a:\batch to drive d:\batch you would enter the following:
-
- Q COPY A:\BATCH D:\BATCH
-
- You would be presented with a file selector box. You would backspace
- one character and enter .BAT in the filename line. Press RETURN or
- click on OK and you will be queried as to whether to copy each .BAT
- file.
-
- NOTE: unfortunately, the file selector box is required. This is
- because the %%f returned by the FOR loop only contains the filename,
- but leaves out the drive and folder. It is neccessary to use the file
- selector box so that the drive and folder information can be
- obtained.
-
- You should modify the Q.BAT file to specify exactly where QUERY.BAT
- will reside - this should be in whatever drive\folder you keep your
- batch files in.
-
-
- CON.BAT - this turns the cursor back on. A few programs will turn the
- cursor off when they exit. Typing CON will restore the cursor.
-
-
-
- COLOR.BAT - this allows you to set the foreground color. For example,
- COLOR RED would turn the letters to red. Not terribly useful, but
- will show you how to set the foreground colors.
-
-
-
- CHKDSK.BAT - this will tell you how many free bytes are available on a
- drive. It does a directory of a non-existant file, with the flag set
- for dir to specify the number of free bytes.
-
-
-
- OFF.BAT - if you need to leave the computer for a while, but don't want to
- turn the monitor off, just type OFF. This will set the foreground and
- background color to black, and wait for you to press RETURN. As soon
- as you press RETURN, the colors will be restored. If you prefer a
- different default color then black characters on white text, you could
- change the F(foreground) and B(background) color numbers. Look at
- COLOR.BAT to see what number goes with which color.
-
-
-
- MOVE.BAT - This copies file(s) and optionally allows you to delete the
- source file after you have copied it to the destination.
-
-
-
- PARAM.BAT - this is for you to expirement with different numbers of
- parameters, and different input strings so you can see what internal
- variables get set. You will find that there are some useful variables
- not described in the documentation. Variables are accessed in batch
- files via a %:letter where letter is the variable. Example %:a will
- give you the number of parameters passed to the batch file.
-
-
-
- FREE.TOS - not a batch file, but useful in a shell environment - this will
- tell you how much memory is available for programs.
-
-
- -written by Ralph Walden, placed in the public domain 11/86
-
-
-